package com.bms.domain;

import java.io.Serializable;
import java.util.Date;

import com.bms.annotation.DataBaseReference;
import com.bms.annotation.DataBaseTable;
import com.bms.domain.Role;

@DataBaseTable (tableName="t_auth_user")
public class User implements Serializable {
	private String id;
	private String name;
	private String password;
	private String gender;
	private int age;
	private Date brithday;
	private String identity_id; 
	private Date entry_date;
	private Date create_date;
	private Date update_date;
	
	@DataBaseReference(tableName="t_auth_role",columnName="role_id",clazz="com.bms.domain.Role")
	private Role role;
	public User(){}
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getPassword() {
		return password;
	}
	public void setPassword(String password) {
		this.password = password;
	}
	public String getGender() {
		return gender;
	}
	public void setGender(String gender) {
		this.gender = gender;
	}
	public int getAge() {
		return age;
	}
	public void setAge(int age) {
		this.age = age;
	}
	public Date getBrithday() {
		return brithday;
	}
	public void setBrithday(Date brithday) {
		this.brithday = brithday;
	}
	public String getIdentity_id() {
		return identity_id;
	}
	public void setIdentity_id(String identity_id) {
		this.identity_id = identity_id;
	}
	public Date getEntry_date() {
		return entry_date;
	}
	public void setEntry_date(Date entry_date) {
		this.entry_date = entry_date;
	}
	public Date getCreate_date() {
		return create_date;
	}
	public void setCreate_date(Date create_date) {
		this.create_date = create_date;
	}
	public Date getUpdate_date() {
		return update_date;
	}
	public void setUpdate_date(Date update_date) {
		this.update_date = update_date;
	}
	public Role getRole() {
		return role;
	}
	public void setRole(Role role) {
		this.role = role;
	}
	
}
